package cerebrum.entity;

/**
 * 记录运行状态
 */
public class RunTimeContext {
    //程序运行状态
    private static Boolean runStatus = false;
    //线程状态
    private  static Boolean threadStatus = true;
    //电子时钟线程状态
    private static Boolean timerStatus =true;
    private static RunTimeContext runTimeContext = new RunTimeContext();

    public static Boolean getThreadStatus() {
        return runTimeContext.threadStatus;
    }

    public static void setThreadStatus(Boolean threadStatus) {
        runTimeContext.threadStatus = threadStatus;
    }

    public static Boolean getRunStatus() {
        return runTimeContext.runStatus;
    }

    public static void setRunStatus(Boolean runStatus) {
        runTimeContext.runStatus = runStatus;
    }


    public static Boolean getTimerStatus() {
        return runTimeContext.timerStatus;
    }

    public static void setTimerStatus(Boolean timerStatus) {
        runTimeContext.timerStatus = timerStatus;
    }
}
